package qa.ui;

import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.JTextArea;
import javax.swing.JButton;
import java.awt.event.ActionEvent;

public class MenuScreen extends JPanel {
	private JLabel lblMainMenu;
	private JButton btnBack;
	private JButton btnForward;
	private JButton button1;
	private JButton button2;
	private JButton button3;
	private JButton button4;
	private JLabel lblViewMyBalance;
	private JLabel lblWithdrawCash;
	private JLabel lblDepositFunds;
	private JLabel lblExit;
	
	private String choice;
	private String balance;
	private String withdrawl;
	private String deposit;
	private String exiting;
	/**
	 * Create the panel.
	 */
	public MenuScreen() {
		setLayout(null);
		
		lblMainMenu = new JLabel("Main Menu");

		lblMainMenu.setFont(new Font("Tahoma", Font.PLAIN, 18));
		lblMainMenu.setBounds(138, 11, 177, 22);
		add(lblMainMenu);
		
		btnBack = new JButton("<");
		btnBack.setBounds(90, 226, 89, 23);
		add(btnBack);
		
		btnForward = new JButton(">");
		btnForward.setBounds(265, 226, 89, 23);
		add(btnForward);
		
		button1 = new JButton("1");
		button1.setBounds(69, 46, 29, 22);
		add(button1);
		
		button2 = new JButton("2");
		button2.setBounds(69, 87, 29, 22);
		add(button2);
		
		button3 = new JButton("3");
		button3.setBounds(69, 128, 29, 22);
		add(button3);
		
		button4 = new JButton("4");
		button4.setBounds(69, 168, 29, 22);
		add(button4);
		
		lblViewMyBalance = new JLabel("View my balance");
		lblViewMyBalance.setBounds(148, 45, 130, 23);
		add(lblViewMyBalance);
		
		lblWithdrawCash = new JLabel("Withdraw cash");
		lblWithdrawCash.setBounds(148, 87, 122, 22);
		add(lblWithdrawCash);
		
		lblDepositFunds = new JLabel("Deposit funds");
		lblDepositFunds.setBounds(148, 128, 95, 22);
		add(lblDepositFunds);
		
		lblExit = new JLabel("Exit");
		lblExit.setBounds(148, 168, 61, 22);
		add(lblExit);
	}
	public String getChoice() {
		choice = lblMainMenu.getText();
		return choice;
	}
	public String getBalance(){
		balance = lblViewMyBalance.getText();
		return balance;
	}

	public String getWithdrawl(){
		withdrawl =lblWithdrawCash.getText();
		return withdrawl;
	}
	public String getDeposit(){
		deposit = lblDepositFunds.getText();
		return deposit;
	}
	public String getExiting(){
		exiting = lblExit.getText();
		return exiting;
	
	}
	public JButton getBtnForward() {
		return btnForward;
	}
	public JButton getbutton1(){
		return button1;	
	}
	public JButton getbutton2(){
		return button2;	
	}
	public JButton getbutton3(){
		return button3;	
	}
	
	public JButton getbutton4(){
		return button4;
	
	}
	public void addActionListener(ActionListener l) {
		btnBack.addActionListener(l);
		btnForward.addActionListener(l);
		button1.addActionListener(l);
		button2.addActionListener(l);
		button3.addActionListener(l);
		button4.addActionListener(l);
	}
	
}
